package com.intelligent.ispc.core.service;

import com.intelligent.ispc.core.dto.RoleDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created by dmrj on 2015/10/28.
 */
public interface RoleService {
    void saveRole(RoleDto roleDto);

    void updateRole(RoleDto roleDto);

    void deleteRole(String id);

    RoleDto findById(String id);

    RoleDto findByName(String name);

    List<RoleDto> findAllRoles();

    List<RoleDto> searchRole(Map<String,Object> searchParams);

    Page<RoleDto> searchRole(Map<String,Object> searchParams,Pageable pageable);

    Page<RoleDto> searchRoleByDescription(String description, Pageable pageable);


}
